package com.lengchangjing.StructuralPatterns.DecoratorPattern;

public class ConcreteDecoratorB extends Decorator {
    public ConcreteDecoratorB(Component component) {
        super(component);
    }

    @Override
    public void operator() {
        super.operator();
        addedBehavior();
    }

    private void addedBehavior(){
        System.out.println("我是B装饰者，这是我要装饰的方法");
    }
}
